
const BaseUrl = "http://129.211.169.131:6368"

export  const request = (url,method,data={})=>{
	//请求拦截
	return new Promise((revoles,reject)=>{
		uni.request({
			url:BaseUrl+url,
			method,
			data,
			success(res){
				//响应拦截器
				revoles(res.data)
			},
			fail(err){
				reject(err)
			}
		})
	})
	
	

}